package controller

import (
	"ginfast/pkg/ctx"

	"github.com/gin-gonic/gin"
)

func init() {
	ctx.Register("/", func(r *gin.RouterGroup) {
		DbInit{}.Routers(r.Group("/dbInit"))
	})
	ctx.RegisterJWT("/", func(r *gin.RouterGroup) {
		r.POST("/upload", UploadPicHandler)
	})
}
